import request from '@/utils/request'
import scope from './scope'
const apiPrefix = `${process.env.VUE_APP_BASE_API}/${scope}/xbclocation/`

// 仓库管理
export const getLocation = (params, config = {}) => {
  return request.get(apiPrefix + 'get', { params: params }, config)
}
export const getXbcLocationListPage = (params, config = {}) => {
  params = params || {}
  return request.post(apiPrefix + 'getpage', params, config)
}
export const addLocation = (params, config = {}) => {
  return request.post(apiPrefix + 'add', params, config)
}
export const editXbcLocation = (params, config = {}) => {
  return request.put(apiPrefix + 'update', params, config)
}
export const removeXbcLocation = (params, config = {}) => {
  return request.delete(apiPrefix + 'softdelete', { params: params }, config)
}
export const batchRemoveXbcWarehouse = (params, config = {}) => {
  return request.put(apiPrefix + 'BatchsoftDelete', params, config)
}
export const getxbcWarehouseList = (params, config = {}) => {
  return request.get(apiPrefix + 'getxbclist', { params: params }, config)
}
export const getxbcLocationList = (params, config = {}) => {
  return request.get(apiPrefix + 'getlocationlist', { params: params }, config)
}

